package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkImage;
import com.zb.vo.OrderImageVo;

import java.util.List;

/**
 * <p>
 * 工单附件表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-09-20
 */
public interface ZjWorkImageService extends IService<ZjWorkImage> {

    /**
     * 新增、删除工单附件
     * @param custAccId 商家ID
     * @param workId 工单ID
     * @param imageVos
     * @param delImageIds
     */
    void save(Long custAccId, Long workId, List<OrderImageVo> imageVos, List<Long> delImageIds);

    /**
     * 根据工单ID获取工单图片
     * @param workId 工单ID
     * @return
     */
    List<ZjWorkImage> getByWorkId(Long workId);
}
